home *** CD-ROM | disk | FTP | other *** search
/ Aminet 52 / Aminet 52 (2002)(GTI - Schatztruhe)[!][Dec 2002].iso / Aminet / dev / gg / ncurses-5.3.lha / ncurses-5.3 / form / Makefile < prev    next >
Makefile  |  2002-10-24  |  14KB  |  473 lines

  1. # $Id: Makefile.in,v 1.36 2002/01/20 01:49:17 tom Exp $
  2. ##############################################################################
  3. # Copyright (c) 1998,1999,2000,2001,2002 Free Software Foundation, Inc.      #
  4. #                                                                            #
  5. # Permission is hereby granted, free of charge, to any person obtaining a    #
  6. # copy of this software and associated documentation files (the "Software"), #
  7. # to deal in the Software without restriction, including without limitation  #
  8. # the rights to use, copy, modify, merge, publish, distribute, distribute    #
  9. # with modifications, sublicense, and/or sell copies of the Software, and to #
  10. # permit persons to whom the Software is furnished to do so, subject to the  #
  11. # following conditions:                                                      #
  12. #                                                                            #
  13. # The above copyright notice and this permission notice shall be included in #
  14. # all copies or substantial portions of the Software.                        #
  15. #                                                                            #
  16. # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
  17. # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,   #
  18. # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL    #
  19. # THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER      #
  20. # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING    #
  21. # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER        #
  22. # DEALINGS IN THE SOFTWARE.                                                  #
  23. #                                                                            #
  24. # Except as contained in this notice, the name(s) of the above copyright     #
  25. # holders shall not be used in advertising or otherwise to promote the sale, #
  26. # use or other dealings in this Software without prior written               #
  27. # authorization.                                                             #
  28. ##############################################################################
  29. #
  30. # Author: Thomas E. Dickey <dickey@clark.net> 1996,1997
  31. #
  32. # Makefile for form source code.
  33. #
  34. # This makes the following:
  35. #    libraries (normal/debug/profile/shared)
  36. #
  37. # The variable 'srcdir' refers to the source-distribution, and can be set with
  38. # the configure script by "--srcdir=DIR".
  39. #
  40. # The rules are organized to produce the libraries for the configured models,
  41.  
  42. # turn off _all_ suffix rules; we'll generate our own
  43. .SUFFIXES:
  44.  
  45. SHELL        = /bin/sh
  46. THIS        = Makefile
  47.  
  48. MODEL        = normal
  49. DESTDIR        = 
  50. srcdir        = .
  51. prefix        = /gg
  52. exec_prefix    = ${prefix}
  53. bindir        = ${exec_prefix}/bin
  54. libdir        = ${exec_prefix}/lib
  55. includedir    = $(prefix)/include/ncurses
  56.  
  57. LIBTOOL        = 
  58.  
  59. INSTALL        = /bin/install -c
  60. INSTALL_LIB    = /bin/install -c -m 644
  61. INSTALL_PROG    = @INSTALL_PROG@
  62. INSTALL_DATA    = ${INSTALL} -m 644
  63.  
  64. AR        = ar
  65. AR_OPTS        = rv
  66. AWK        = gawk
  67. LD        = ld
  68. LN_S        = ln -s
  69.  
  70. CC        = gcc
  71. CPP        = gcc -E
  72. CFLAGS        = -O2 -fomit-frame-pointer -m68020-60 -ffast-math 
  73.  
  74. CPPFLAGS    =  -DNDEBUG -I. -I../include -I$(includedir) \
  75.           -DHAVE_CONFIG_H 
  76.  
  77. CCFLAGS        = $(CPPFLAGS) $(CFLAGS)
  78.  
  79. CFLAGS_LIBTOOL    = $(CCFLAGS)
  80. CFLAGS_NORMAL    = $(CCFLAGS)
  81. CFLAGS_DEBUG    = $(CCFLAGS) -g -DTRACE
  82. CFLAGS_PROFILE    = $(CCFLAGS) -pg
  83. CFLAGS_SHARED    = $(CCFLAGS) unknown
  84.  
  85. CFLAGS_DEFAULT    = $(CFLAGS_NORMAL)
  86.  
  87. LINK        = $(LIBTOOL) $(CC)
  88. LDFLAGS        = -s -lm  
  89.  
  90. SHLIB_DIRS    = -L../lib
  91. SHLIB_LIST    = $(SHLIB_DIRS) -lncurses 
  92.  
  93. MK_SHARED_LIB    = echo unknown
  94.  
  95. NCURSES_MAJOR    = 5
  96. NCURSES_MINOR    = 3
  97. REL_VERSION    = 5.3
  98. ABI_VERSION    = 5
  99.  
  100. RANLIB        = ranlib
  101.  
  102. IMPORT_LIB    = 
  103. SHARED_LIB    = 
  104. LIBRARIES    =  ../lib/libform.a
  105.  
  106. LINT        = 
  107. LINT_OPTS    = 
  108. LINT_LIBS    = -lform -lncurses 
  109.  
  110. AUTO_SRC    = \
  111.         ../include/form.h  
  112.  
  113. ################################################################################
  114. all \
  115. libs \
  116. install ::    $(AUTO_SRC) $(LIBRARIES)
  117.  
  118. sources :    $(AUTO_SRC)
  119.  
  120. $(DESTDIR)$(bindir) \
  121. $(DESTDIR)$(libdir) :
  122.     sh $(srcdir)/../mkinstalldirs $@
  123.  
  124. # make copies to simplify include-paths while still keeping form's include
  125. # file in this directory.
  126. ../include/form.h : $(srcdir)/form.h
  127.     -rm -f $@
  128.     cp $(srcdir)/form.h $@
  129.  
  130. FORM_PRIV_H = \
  131.     $(srcdir)/form.priv.h \
  132.     $(srcdir)/form.h \
  133.     ../include/mf_common.h \
  134.     ../include/curses.h \
  135.     ../include/eti.h
  136.  
  137. tags:
  138.     ctags *.[ch]
  139.  
  140. #TAGS:
  141. #    etags *.[ch]
  142.  
  143. mostlyclean ::
  144.     -rm -f core tags TAGS *~ *.bak *.i *.ln *.atac trace
  145.  
  146. clean :: mostlyclean
  147.     -rm -f $(AUTO_SRC)
  148.  
  149. distclean :: clean
  150.     -rm -f Makefile
  151.  
  152. realclean :: distclean
  153.  
  154. ../include/mf_common.h \
  155. ../include/eti.h :
  156.     cd ../menu && $(MAKE) $@
  157.  
  158. ###############################################################################
  159. # The remainder of this file is automatically generated during configuration
  160. ###############################################################################
  161.  
  162. # generated by mk-0th.awk
  163.  
  164. .SUFFIXES: .c .cc .h .i .ii
  165. .c.i :
  166.     $(CPP) $(CPPFLAGS) $< >$@
  167. .cc.ii :
  168.     $(CPP) $(CPPFLAGS) $< >$@
  169. .h.i :
  170.     $(CPP) $(CPPFLAGS) $< >$@
  171.  
  172. C_SRC = \
  173.     $(srcdir)/fld_arg.c \
  174.     $(srcdir)/fld_attr.c \
  175.     $(srcdir)/fld_current.c \
  176.     $(srcdir)/fld_def.c \
  177.     $(srcdir)/fld_dup.c \
  178.     $(srcdir)/fld_ftchoice.c \
  179.     $(srcdir)/fld_ftlink.c \
  180.     $(srcdir)/fld_info.c \
  181.     $(srcdir)/fld_just.c \
  182.     $(srcdir)/fld_link.c \
  183.     $(srcdir)/fld_max.c \
  184.     $(srcdir)/fld_move.c \
  185.     $(srcdir)/fld_newftyp.c \
  186.     $(srcdir)/fld_opts.c \
  187.     $(srcdir)/fld_pad.c \
  188.     $(srcdir)/fld_page.c \
  189.     $(srcdir)/fld_stat.c \
  190.     $(srcdir)/fld_type.c \
  191.     $(srcdir)/fld_user.c \
  192.     $(srcdir)/frm_cursor.c \
  193.     $(srcdir)/frm_data.c \
  194.     $(srcdir)/frm_def.c \
  195.     $(srcdir)/frm_driver.c \
  196.     $(srcdir)/frm_hook.c \
  197.     $(srcdir)/frm_opts.c \
  198.     $(srcdir)/frm_page.c \
  199.     $(srcdir)/frm_post.c \
  200.     $(srcdir)/frm_req_name.c \
  201.     $(srcdir)/frm_scale.c \
  202.     $(srcdir)/frm_sub.c \
  203.     $(srcdir)/frm_user.c \
  204.     $(srcdir)/frm_win.c \
  205.     $(srcdir)/fty_alnum.c \
  206.     $(srcdir)/fty_alpha.c \
  207.     $(srcdir)/fty_enum.c \
  208.     $(srcdir)/fty_int.c \
  209.     $(srcdir)/fty_ipv4.c \
  210.     $(srcdir)/fty_num.c \
  211.     $(srcdir)/fty_regex.c
  212.  
  213. # Producing llib-lform is time-consuming, so there's no direct-dependency for
  214. # it in the lintlib rule.  We'll only remove in the cleanest setup.
  215. clean ::
  216.     rm -f llib-lform.*
  217.  
  218. realclean ::
  219.     rm -f llib-lform
  220.  
  221. llib-lform : $(C_SRC)
  222.     cproto -a -l -DLINT $(CPPFLAGS) $(C_SRC) >$@
  223.  
  224. lintlib :
  225.     sh $(srcdir)/../misc/makellib form $(CPPFLAGS)
  226. lint :
  227.     $(LINT) $(LINT_OPTS) $(CPPFLAGS) $(C_SRC) $(LINT_LIBS)
  228.  
  229. # generated by mk-1st.awk
  230.  
  231. NORMAL_OBJS = \
  232.     ../objects/fld_arg.o \
  233.     ../objects/fld_attr.o \
  234.     ../objects/fld_current.o \
  235.     ../objects/fld_def.o \
  236.     ../objects/fld_dup.o \
  237.     ../objects/fld_ftchoice.o \
  238.     ../objects/fld_ftlink.o \
  239.     ../objects/fld_info.o \
  240.     ../objects/fld_just.o \
  241.     ../objects/fld_link.o \
  242.     ../objects/fld_max.o \
  243.     ../objects/fld_move.o \
  244.     ../objects/fld_newftyp.o \
  245.     ../objects/fld_opts.o \
  246.     ../objects/fld_pad.o \
  247.     ../objects/fld_page.o \
  248.     ../objects/fld_stat.o \
  249.     ../objects/fld_type.o \
  250.     ../objects/fld_user.o \
  251.     ../objects/frm_cursor.o \
  252.     ../objects/frm_data.o \
  253.     ../objects/frm_def.o \
  254.     ../objects/frm_driver.o \
  255.     ../objects/frm_hook.o \
  256.     ../objects/frm_opts.o \
  257.     ../objects/frm_page.o \
  258.     ../objects/frm_post.o \
  259.     ../objects/frm_req_name.o \
  260.     ../objects/frm_scale.o \
  261.     ../objects/frm_sub.o \
  262.     ../objects/frm_user.o \
  263.     ../objects/frm_win.o \
  264.     ../objects/fty_alnum.o \
  265.     ../objects/fty_alpha.o \
  266.     ../objects/fty_enum.o \
  267.     ../objects/fty_int.o \
  268.     ../objects/fty_ipv4.o \
  269.     ../objects/fty_num.o \
  270.     ../objects/fty_regex.o
  271.  
  272. $(NORMAL_OBJS) : ../include/ncurses_cfg.h ./form.priv.h
  273.  
  274. ../lib/libform.a : $(NORMAL_OBJS)
  275.     $(AR) $(AR_OPTS) $@ $?
  276.     $(RANLIB) $@
  277.  
  278. install \
  279. install.libs \
  280. install.form :: $(DESTDIR)$(libdir) ../lib/libform.a
  281.     @echo installing ../lib/libform.a as $(DESTDIR)$(libdir)/libform.a
  282.     $(INSTALL_DATA) ../lib/libform.a $(DESTDIR)$(libdir)/libform.a
  283.     $(RANLIB) $(DESTDIR)$(libdir)/libform.a
  284.  
  285. uninstall \
  286. uninstall.libs \
  287. uninstall.form ::
  288.     @echo uninstalling $(DESTDIR)$(libdir)/libform.a
  289.     -@rm -f $(DESTDIR)$(libdir)/libform.a
  290.  
  291. clean ::
  292.     -rm -f ../lib/libform.a
  293.  
  294. mostlyclean::
  295.     -rm -f $(NORMAL_OBJS)
  296.  
  297. # generated by mk-2nd.awk
  298.  
  299.  
  300. ../objects/fld_arg.o :    $(srcdir)/fld_arg.c \
  301.             $(FORM_PRIV_H)
  302.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_arg.c
  303.  
  304. ../objects/fld_attr.o :    $(srcdir)/fld_attr.c \
  305.             $(FORM_PRIV_H)
  306.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_attr.c
  307.  
  308. ../objects/fld_current.o :    $(srcdir)/fld_current.c \
  309.             $(FORM_PRIV_H)
  310.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_current.c
  311.  
  312. ../objects/fld_def.o :    $(srcdir)/fld_def.c \
  313.             $(FORM_PRIV_H)
  314.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_def.c
  315.  
  316. ../objects/fld_dup.o :    $(srcdir)/fld_dup.c \
  317.             $(FORM_PRIV_H)
  318.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_dup.c
  319.  
  320. ../objects/fld_ftchoice.o :    $(srcdir)/fld_ftchoice.c \
  321.             $(FORM_PRIV_H)
  322.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_ftchoice.c
  323.  
  324. ../objects/fld_ftlink.o :    $(srcdir)/fld_ftlink.c \
  325.             $(FORM_PRIV_H)
  326.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_ftlink.c
  327.  
  328. ../objects/fld_info.o :    $(srcdir)/fld_info.c \
  329.             $(FORM_PRIV_H)
  330.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_info.c
  331.  
  332. ../objects/fld_just.o :    $(srcdir)/fld_just.c \
  333.             $(FORM_PRIV_H)
  334.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_just.c
  335.  
  336. ../objects/fld_link.o :    $(srcdir)/fld_link.c \
  337.             $(FORM_PRIV_H)
  338.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_link.c
  339.  
  340. ../objects/fld_max.o :    $(srcdir)/fld_max.c \
  341.             $(FORM_PRIV_H)
  342.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_max.c
  343.  
  344. ../objects/fld_move.o :    $(srcdir)/fld_move.c \
  345.             $(FORM_PRIV_H)
  346.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_move.c
  347.  
  348. ../objects/fld_newftyp.o :    $(srcdir)/fld_newftyp.c \
  349.             $(FORM_PRIV_H)
  350.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_newftyp.c
  351.  
  352. ../objects/fld_opts.o :    $(srcdir)/fld_opts.c \
  353.             $(FORM_PRIV_H)
  354.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_opts.c
  355.  
  356. ../objects/fld_pad.o :    $(srcdir)/fld_pad.c \
  357.             $(FORM_PRIV_H)
  358.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_pad.c
  359.  
  360. ../objects/fld_page.o :    $(srcdir)/fld_page.c \
  361.             $(FORM_PRIV_H)
  362.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_page.c
  363.  
  364. ../objects/fld_stat.o :    $(srcdir)/fld_stat.c \
  365.             $(FORM_PRIV_H)
  366.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_stat.c
  367.  
  368. ../objects/fld_type.o :    $(srcdir)/fld_type.c \
  369.             $(FORM_PRIV_H)
  370.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_type.c
  371.  
  372. ../objects/fld_user.o :    $(srcdir)/fld_user.c \
  373.             $(FORM_PRIV_H)
  374.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_user.c
  375.  
  376. ../objects/frm_cursor.o :    $(srcdir)/frm_cursor.c \
  377.             $(FORM_PRIV_H)
  378.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/frm_cursor.c
  379.  
  380. ../objects/frm_data.o :    $(srcdir)/frm_data.c \
  381.             $(FORM_PRIV_H)
  382.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/frm_data.c
  383.  
  384. ../objects/frm_def.o :    $(srcdir)/frm_def.c \
  385.             $(FORM_PRIV_H)
  386.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/frm_def.c
  387.  
  388. ../objects/frm_driver.o :    $(srcdir)/frm_driver.c \
  389.             $(FORM_PRIV_H)
  390.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/frm_driver.c
  391.  
  392. ../objects/frm_hook.o :    $(srcdir)/frm_hook.c \
  393.             $(FORM_PRIV_H)
  394.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/frm_hook.c
  395.  
  396. ../objects/frm_opts.o :    $(srcdir)/frm_opts.c \
  397.             $(FORM_PRIV_H)
  398.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/frm_opts.c
  399.  
  400. ../objects/frm_page.o :    $(srcdir)/frm_page.c \
  401.             $(FORM_PRIV_H)
  402.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/frm_page.c
  403.  
  404. ../objects/frm_post.o :    $(srcdir)/frm_post.c \
  405.             $(FORM_PRIV_H)
  406.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/frm_post.c
  407.  
  408. ../objects/frm_req_name.o :    $(srcdir)/frm_req_name.c \
  409.             $(FORM_PRIV_H)
  410.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/frm_req_name.c
  411.  
  412. ../objects/frm_scale.o :    $(srcdir)/frm_scale.c \
  413.             $(FORM_PRIV_H)
  414.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/frm_scale.c
  415.  
  416. ../objects/frm_sub.o :    $(srcdir)/frm_sub.c \
  417.             $(FORM_PRIV_H)
  418.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/frm_sub.c
  419.  
  420. ../objects/frm_user.o :    $(srcdir)/frm_user.c \
  421.             $(FORM_PRIV_H)
  422.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/frm_user.c
  423.  
  424. ../objects/frm_win.o :    $(srcdir)/frm_win.c \
  425.             $(FORM_PRIV_H)
  426.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/frm_win.c
  427.  
  428. ../objects/fty_alnum.o :    $(srcdir)/fty_alnum.c \
  429.             $(FORM_PRIV_H)
  430.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/fty_alnum.c
  431.  
  432. ../objects/fty_alpha.o :    $(srcdir)/fty_alpha.c \
  433.             $(FORM_PRIV_H)
  434.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/fty_alpha.c
  435.  
  436. ../objects/fty_enum.o :    $(srcdir)/fty_enum.c \
  437.             $(FORM_PRIV_H)
  438.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/fty_enum.c
  439.  
  440. ../objects/fty_int.o :    $(srcdir)/fty_int.c \
  441.             $(FORM_PRIV_H)
  442.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/fty_int.c
  443.  
  444. ../objects/fty_ipv4.o :    $(srcdir)/fty_ipv4.c \
  445.             $(FORM_PRIV_H)
  446.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/fty_ipv4.c
  447.  
  448. ../objects/fty_num.o :    $(srcdir)/fty_num.c \
  449.             $(FORM_PRIV_H)
  450.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/fty_num.c
  451.  
  452. ../objects/fty_regex.o :    $(srcdir)/fty_regex.c \
  453.             $(FORM_PRIV_H)
  454.     cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/fty_regex.c
  455.  
  456. $(DESTDIR)$(includedir) :
  457.     sh $(srcdir)/../mkinstalldirs $@
  458.  
  459. install \
  460. install.libs \
  461. install.includes :: $(AUTO_SRC) $(DESTDIR)$(includedir) \
  462.         $(srcdir)/form.h
  463.     @ (cd $(DESTDIR)$(includedir) && rm -f form.h) ; ../headers.sh $(INSTALL_DATA) $(DESTDIR)$(includedir) $(srcdir) $(srcdir)/form.h
  464.  
  465. uninstall \
  466. uninstall.libs \
  467. uninstall.includes ::
  468.     -@ (cd $(DESTDIR)$(includedir) && rm -f form.h)
  469. depend : $(AUTO_SRC)
  470.     makedepend -- $(CPPFLAGS) -- $(C_SRC)
  471.  
  472. # DO NOT DELETE THIS LINE -- make depend depends on it.
  473.